package com.iplant.basic.service.basicenum.bms;


import com.iplant.base.po.enums.BaseEnum;

/**
 * 职能分类
 *
 * @author YouWang·Peng
 * 2023-7-14 13:50:31
 */
public enum BMSFunctionType implements BaseEnum {
    /**
     * 默认
     */
    DEFAULT(0, "默认"),
    /**
     * 设备
     */
    OPERATOR(1, "操作工"),
    /**
     * 检验员
     */
    INSPECTOR(2, "检验员"),
    /**
     * 工艺员
     */
    TECHNICIANS(3, "工艺员"),
    /**
     * 设备员
     */
    EQUIPMENTPERSONNEL(4, "设备员"),
    /**
     * 入库员
     */
    WAREHOUSEKEEPER(5, "入库员"),
    /**
     * 配料员
     */
    COMPOUNDER(6, "配料员");

    private int value;
    private String label;
    private String remark = "";

    BMSFunctionType(int value, String label) {
        this.value = value;
        this.label = label;
    }

    public static BMSFunctionType getEnumType(int val) {
        for (BMSFunctionType type : BMSFunctionType.values()) {
            if (type.getValue() == val) {
                return type;
            }
        }
        return null;
    }

    @Override
    public int getValue() {
        return value;
    }

    @Override
    public void setValue(int value) {
        this.value = value;
    }

    @Override
    public String getLabel() {
        return label;
    }

    @Override
    public void setLabel(String label) {
        this.label = label;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }
}
